// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
/* jshint esversion: 6 */

import Vue from 'vue';
import App from './App';
import router from './router'; // 导入路由文件
import axios from 'axios';
import VueAxios from 'vue-axios';
import 'amfe-flexible';
import 'lib-flexible/flexible';
import 'lib-flexible';

Vue.prototype.$axios = axios;
import QS from 'qs';
Vue.prototype.qs = QS;

Vue.use(VueAxios, axios);
// axios.defaults.baseURL = '/xcxapi'; //https://api.douban.com/v2/movie 改成/api才能用proxyTable跨域


import {
    Button,
    Col,
    Image,
    Popup,
    Row,
    Swipe,
    SwipeItem,
    List,
    Cell,
    CellGroup,
    Tag,
    Progress,
    Tabbar,
    TabbarItem,
    PullRefresh,
    Tab,
    Tabs,
    Icon,
    Dialog,
    Toast,
    NavBar,
    AddressEdit,
    Field,
    Uploader,
    Rate,
    Form,
    AddressList,
    RadioGroup,
    Radio,
    Loading

} from 'vant';

Vue.use(Row)
    .use(Col)
    .use(Popup)
    .use(Button)
    .use(Image)
    .use(Swipe)
    .use(SwipeItem)
    .use(List)
    .use(Cell)
    .use(CellGroup)
    .use(Tag)
    .use(Progress)
    .use(Tabbar)
    .use(TabbarItem)
    .use(PullRefresh)
    .use(Tab)
    .use(Tabs)
    .use(Icon)
    .use(Dialog)
    .use(Toast)
    .use(NavBar)
    .use(AddressEdit)
    .use(Field)
    .use(Uploader)
    .use(Rate)
    .use(Form)
    .use(AddressList)
    .use(RadioGroup)
    .use(Radio)
    .use(Loading);

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: {
        App
    },
    template: '<App/>'
});